home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
e
/
amigae21
/
amigae21.lha
/
Amiga_E_v2.1b
/
Sources
/
Other
/
Avail.e
next >
Wrap
Text File
|
1992-09-02
|
522b
|
21 lines
/* Avail replacement */
/* By EA van Breemen */
PROC main()
DEF chip,fast,largest_chip,largest_fast,largest_total
chip:=AvailMem($2)
fast:=AvailMem($4)
largest_chip:=AvailMem($20002)
largest_fast:=AvailMem($20004)
largest_total:=IF largest_fast>largest_chip THEN largest_fast ELSE largest_chip
WriteF('Type Available Largest\n')
WriteF('chip \d[9] \d[9]\n',chip,largest_chip)
IF fast
WriteF('fast \d[9] \d[9]\n',fast,largest_fast)
WriteF('total \d[9] \d[9]\n',chip+fast,largest_total)
ENDIF
ENDPROC